package com.yanxu.strategy;

import java.util.HashMap;
import java.util.Map;

/**
 * @author 折戟沉沙铁未销
 * @version V1.0
 * @date 2025/4/15-2025
 * @Description: 客户端
 */
public class Test3 {
    private static Map<String, PromotionStrategy> MAP = new HashMap<>();

    static {
        MAP.put("Lijian", new LijianPromotion());
        MAP.put("Fanxian", new FanxianPromotion());
        MAP.put("ManJian", new ManJianPromotion());
    }

    public static void main(String[] args) {
        PromotionStrategy promotionStrategy = null;
        String key = "Lijian";
        promotionStrategy = MAP.get(key);
        promotionStrategy.doPromotion();
    }
}